package com.groupbuying.sysconfig.service.ali;

import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description: 支付宝用户授权认证和授权手机号解密信息接口
 * @Auther: YangMeng
 * @Date: 2019/10/16 14:46
 **/
public interface AliAuthLoginService {
    /**
     * 用户认证授权获取alipayUserId和accessToken
     * @param authCode
     * @return map
     * @throws Exception
     */
    Map<String, String> aliGetUserIdAccessCodeByAuthCode(@RequestParam("authCode") String authCode) throws Exception;

    /**
     * 支付宝用户授权手机号解密信息接口
     * @param params
     * @return map
     */
    Map<String, String> aliDecodeUserEncryptedData(@RequestParam Map<String, String> params);

}
